<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                >
    <style>
        .column {
            width: 410px;
            vertical-align: top;
        }
        .rowc{
            text-align: right
        }
        .center{
            text-align:center;
            align:center;
        }
        .table{
            text-align:left;
        }
        .table tr{
            height: 30px;
        }
    </style>

    <h:form id="form">
        <rich:panel header="所有公告：">
            <h:dataTable id="editTable" value="#{announce.leavinglist}"
                         var="item"
                         frame="hsides"
                         width="100%"
                         styleClass="table">
                <rich:column>
                    <f:facet name="header">
                        <h:panelGroup>
                            <h:outputText value="标题"/>
                        </h:panelGroup>
                    </f:facet>
                    <h:commandLink action="#{announce.qmore}" value=" #{item.title}">
                        <f:param  name="qmore" value="#{item.id}"/>
                    </h:commandLink>
                </rich:column>

                <rich:column>
                    <f:facet name="header">
                        <h:panelGroup>
                            <h:outputText value="概要"/>
                        </h:panelGroup>
                    </f:facet>
                    <h:outputText    value="#{item.outline}"/>
                </rich:column>

                <rich:column>
                    <f:facet name="header">
                        <h:panelGroup>
                            <h:outputText value="最后修改时间"/>
                        </h:panelGroup>
                    </f:facet>
                    <h:outputText    value="#{item.lastchangedate}"
                                     style="padding-left: 10px;">
                        <f:convertDateTime pattern="yyyy/MM/dd"/>
                    </h:outputText>
                </rich:column>
            </h:dataTable>
        </rich:panel>
    </h:form>
</ui:composition>
